//
//  SportTalentTipView.swift
//  JTYP
//
//  Created by Groot on 2017/12/9.
//  Copyright © 2017年 inspur. All rights reserved.
//

class SportTalentTip: UIView {
    
    private lazy var iconView: UIImageView = {
       var v = UIImageView()
        v.image = UIImage.init(named: "my_yddr")
        return v
    }()
    
    private lazy var titleLab: UILabel = {
        var v = UILabel()
        v.textColor = UIColor.init(white: 0.2, alpha: 1.0)
        v.font = UIFont.systemFont(ofSize: 15)
        v.text = "运动达人"
        return v
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        customization()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        customization()
    }
    
    func customization(){
        addSubview(iconView)
        addSubview(titleLab)
        iconView.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.top.equalToSuperview()
            make.bottom.equalTo(titleLab.snp.top).offset(-8)
        }
        titleLab.snp.makeConstraints { (make) in
            make.centerX.equalToSuperview()
            make.bottom.equalToSuperview().offset(-8)
        }
    }
}
